import com.cx.core.dict.annotation.EnumValidation;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Setter
@Getter
public class User {

    @NotNull
    @Size(min = 2, max = 30)
    private String name;

    @EnumValidation(value = "dict")
    private String password;
}
